<?php
$baseUrl = Yii::app()->request->baseUrl;
?>

<?php
foreach ($category as $value) {
    $link[] = Chtml::link($value->name, $value->link);
}
?>
<ul id="breadcrumb" class="breadcrumb">
    <li>
        <a href="<?php echo $baseUrl ?>">Trang Chủ</a>
        <span class="divider">/</span>
    </li>
    <li>
        <?php echo implode('<span class="divider">/</span>', $link) ?>
        <span class="divider">/</span>
    </li>
    <li>
        <?php echo $model->name ?>
    </li>
</ul>
<div class="row">	  
    <div id="gallery" class="span3">
        <a href="themes/images/products/large/f1.jpg" title="Fujifilm FinePix S2950 Digital Camera">
            <?php echo CHtml::image($model->linkImg, $model->name) ?>
        </a>
    </div>
    <div class="span6">
        <h3><?php echo $model->name ?></h3>
        <small>Đơn giá: <?php echo CHtml::encode(number_format($model->price, 0, ",", ".")) ?></small><br>
        <small>Liên hệ: <?php echo $phone->value ?></small>


    </div>

    <div class="span9">
        <ul id="productDetail" class="nav nav-tabs">
            <li class="active"><a href="#home" data-toggle="tab">Product Details</a></li>
            <li><a href="#profile" data-toggle="tab">Related Products</a></li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="home">
                <h4>Chi tiết</h4>
                <?php echo $model->content ?>
            </div>
            <div class="tab-pane fade" id="profile">
                <div class="tab-pane active" id="blockView">
                    <ul class="thumbnails">
                        <?php
                        $this->widget('bootstrap.widgets.TbListView', array(
                            'dataProvider' => $dataProvider,
                            'itemView' => '/product/_view',
                            'template' => "{items}\n{pager}",
                        ));
                        ?>

                    </ul>
                    <hr class="soft"/>
                </div>
            </div>
            <br class="clr">
        </div>
        <div>
            <b>Tags:</b>
            <?php echo implode(', ', $model->tagLinks); ?>
        </div>
    </div>
</div>

</div>